<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>   
<html>
<head>
    <meta charset="utf-8">
    <title>导入Excel错误信息提示</title>
    <jsp:include page="/common/head.jsp"></jsp:include>
    <style>
        html, body, div, p, span, img, a, h1, h2, h3, h4, h5, h6, ul, li, dl, dt,
        dd, form, input, select, textarea, fieldset, legend, table, tr, th, td {
            padding: 0;
            margin: 0;
            border: 0;
        }
        html,body {
            width: 100%;
        }
        .error_table_outdiv {
            width: 100%;
            padding: 15px;
            box-sizing: border-box;
        }
        .error_table {
            width: 100%;
            border-collapse: collapse;
            border-spacing: 0;
        }
        .error_table tr{
            border-bottom: 1px solid #cccccc;
            color: #555;
        }
        .error_table tr:hover {
            background: #89c997;
            color: #ffffff;
        }
        .error_table tr:first-child:hover {
            background: transparent;
        }
        
        .error_table tr th {
            height: 40px;
            line-height: 40px;
            /* color: #ff0000; */
            font-size: 14px;
            font-weight: bold;
        }
        .error_table tr td {
            padding: 8px 6px;
            font: 12px "microsoft yahei";
            text-align: center;
        }
        .error_table tr td:first-child {
            background: #f8daae;
            width: 25px;
            color: #555555;
        }
        .error_table tr:hover td:first-child {
            background: #facd89;
        }
    </style>
</head>
<body class="iframe-page">
<div class="page-title-wrapper">
    <div class="page-title">
        <div class="page-title-text">
            <span>导入信息</span>
            <span class="split"></span>
            <span>错误导入信息</span>
        </div>
        <a id="goBack" class="btn-return distance-left" href="javascript:;"><i class="icon icon-arrow-left"></i>返回上级</a>
    </div>
    <div class="page-title-border"></div>
</div>
<div class="error_table_outdiv">
    <table class="error_table">
        <tr>
            <th colspan="5" style="color:#ff0000;">Excel导入过程中的错误信息</th>
        </tr>
        <tr>
            <th>序号</th>
            <th>工作表</th>
            <th>错误行</th>
            <th>错误列</th>
            <th>错误信息</th>
        </tr>
     <c:forEach items="${ExcelImpError}" var="errorInfo" varStatus="status">
        <tr>
            <td>${status.index + 1}</td>
            <td>${errorInfo.sheetName}</td>
            <td>${errorInfo.rowNum+1}</td>
            <td>${errorInfo.columnNum+1}</td>
            <td>${errorInfo.errorMessage}</td>
        </tr>
    </c:forEach> 
    </table>
</div>
<script>
    var backHome = '${param.backHome}';
    $(function(){
        //关闭按钮事件
        $('#goBack').on('click',closeWindows);
    });
    
    //关闭窗口
    function closeWindows() {
        window.location.href = backHome;
    }
</script>
</body>
</html>